﻿
<!doctype html>
<html>
<head>
<title>班组新增</title> <#include "../../commonUse.html"/>

<script src="${ctx.contextPath}/pages/business/group/js/group_update.js"></script>
<script src="${ctx.contextPath}/js/validator.js"></script>
<script type="text/javascript">
	var groupId = '${group.REC_ID}';
</script>
</head>
<body>
	<div class="smart-body">
		<div class="border1pxe6">
			<div class="layui-layer-title">班组修改</div>
			<div class="pad10">

				<!--********fieldset块  班组信息********-->
				<fieldset class="layui-elem-field layui-field-title">
					<legend>修改班组信息</legend>
					<div class="layui-field-box">
						<!--不需要横线直接从这复制 layui-filed-box内-->
						<form id="form1" name="form1" class="layui-form layui-form-pane">
							<input type="hidden" id="recId" value="${group.REC_ID}"
								name="recId"></input> <input type="hidden" id="workerIds"
								name="workerIds" dataType="LimitA" msg="组员不能为空！">
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label">班组名称</label>
									<!--宽度太长可以设置layui-input-inline的style="width=190px;" 默认190px-->
									<div class="layui-input-inline">
										<input type="text" id="name" autocomplete="off"
											value="${group.NAME}" class="layui-input" name="name"
											maxlength="30" dataType="LimitA"
											msg="班组名称不能为!"></input>
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">班长姓名</label>
									<div class="layui-input-inline">
										<input type="text" id="monitor" autocomplete="off"
											value="${group.MONITOR}" readonly onclick="selectMonitor();"
											class="layui-input" name="monitor" maxlength="10"></input> <input
											type="hidden" id="monitorId" name="monitorId" dataType="LimitA" 
											msg="班长姓名不能为空!"
											value="${group.MONITOR_ID}"></input>
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">班长电话</label>
									<div class="layui-input-inline">
										<input type="text" id="tel" name="tel" autocomplete="off" readonly
											value="${group.TEL}" class="layui-input" maxlength="11" >
									</div>
								</div>
							</div>
							<!--layui-form-item新一行-->
							<div class="layui-form-item">
								
							</div>
						</form>
						<!--不需要横线直接从这复制 layui-filed-box内 end-->
					</div>
				</fieldset>
				<!--********fieldset块  班组信息********-->



				<!--********fieldset块  参与项目********-->
				<fieldset class="layui-elem-field layui-field-title">
					<legend>参与项目</legend>
					<div class="layui-field-box">
						<!--不需要横线直接从这复制 layui-filed-box内-->
						<form action="" class="layui-form layui-form-pane">
							<div class="layui-form-item">
								<div class="layui-inline" id="projects">
									<label class="layui-form-label">项目</label>
									<!-- <div class="layui-input-inline">
								<select class="smart-body_select" name="" id="">
									<option value="">项目1</option>
								</select>
							</div> -->
									<!-- <div class="layui-input-inline">
								<input type="text"  autocomplete="off" value="" class="layui-input" onclick="deleteProject();" >
							</div> -->
								</div>
								<div class="layui-btn" style="vertical-align: top;"
									onclick="addProjectSelect();">
									<i class="layui-icon">&#xe608;</i> 添加项目
								</div>
							</div>
						</form>
						<!--不需要横线直接从这复制 layui-filed-box内 end-->
					</div>
				</fieldset>
				<!--********fieldset块  参与项目********-->
                  
                  <form id="form2" name="form2"></form>
				<!--********fieldset块  组员信息********-->
				<fieldset class="layui-elem-field layui-field-title">
					<legend>组员信息</legend>
					<div class="layui-field-box">
						<!--不需要横线直接从这复制 layui-filed-box内-->
						<div class="smart-table_toptit clearfix">
							当前应用人数:<span id="appNum">0</span>
							<div class="smart-table_toptit_rt">
								<a href="javaScript:void(0);" onclick="selectWorker();">添加组员</a>
							</div>

						</div>
						<table class="layui-table" lay-skin="line">
							<thead>
								<tr>
									<th>姓名</th>
									<th>工号</th>
									<th>工种</th>
									<th>班组</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody id="tbodyData">

							</tbody>
						</table>
						<!--           ######分页开始 ######             -->

						<div class="tableData1"></div>

						<!--           ######分页结束 ######              -->
						<!--不需要横线直接从这复制 layui-filed-box内-->
					</div>
				</fieldset>
				<!--********fieldset块  组员信息********-->



				<!--********按钮********-->
				<div class="smart-footer_btn">
					<button class="layui-btn layui-btn-primary" onclick="back();">取消</button>
					<button class="layui-btn" onclick="groupSave();">保存</button>
				</div>
				<!--********按钮end********-->

			</div>
		</div>
	</div>

</body>
</html>